package com.base.mapper.voipmapper;

import com.base.po.voip.NewsAdvertisement;
import com.base.po.voip.NewsAdvertisementExample;
import com.base.utils.Page;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface NewsAdvertisementMapper {
    int countByExample(NewsAdvertisementExample example);

    int deleteByExample(NewsAdvertisementExample example);

    int insert(NewsAdvertisement record);

    int insertSelective(NewsAdvertisement record);

    List<NewsAdvertisement> selectByExample(NewsAdvertisementExample example);
    
    NewsAdvertisement selectByPrimaryKey(String id);
    
    List<NewsAdvertisement> selectByParentId(String parentid);
    
    List<NewsAdvertisement> selectByAll(String parentid);
    
    List<NewsAdvertisement> selectByParentid(@Param("page") Page page, @Param("parentid") String parentid);

    int updateByExampleSelective(@Param("record") NewsAdvertisement record, @Param("example") NewsAdvertisementExample example);

    int updateByExample(@Param("record") NewsAdvertisement record, @Param("example") NewsAdvertisementExample example);
    
    int updateByPrimaryKeySelective(NewsAdvertisement record);
    
    int countByParentid(String parentid);
}